﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div class="navigation rc white-space">
    <div class="nav-bar">
        <a href="/forum/" class="fr-subject bold" title="<%=Html.Encode(ForumContext.Configuration.ForumName)%>">
            <%=ForumContext.Configuration.ForumName%></a>&nbsp;
        <%
            var _page = ViewData["Page"] as PageEntity;

            if (_page != null)
            {


        %>
        <span class="nav-arrow">&#187;</span>&nbsp;<a href="<%=!string.IsNullOrEmpty(_page.Url)?_page.Url:"#"%>" class="fr-subject"
            title="<%=Html.Encode(_page.Name) %>">
            <%=Html.Encode(_page.Name)%></a>
        <%
}
        %>
        <%
        
            var _navigaties = ViewData["ForumNavigate"] as List<Forum>;

            if (_navigaties != null)
            {

                foreach (var navigate in _navigaties)
                {
        %>
        <span class="nav-arrow">&#187;</span>&nbsp;<a href="<%=ForumContext.ForumLink(navigate.ForumId,navigate.ForumName,null) %>"
            class="fr-subject" title="<%=Html.Encode(navigate.ForumName) %>">
            <%=Html.Encode(navigate.ForumName)%></a>
        <%
}


            }
        %>
    </div>
</div>
<div class="message-box rc white-space hidden" ondblclick="$(this).fadeOut()">
    <div id="_message">
    </div>
</div>
